﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SMIS.Enums;
using DX.CRC.Common.WebUtil;

namespace SMIS.Entities
{
    public class Staff
    {
        public int SID { get; set; }
        public string SName { get; set; }
        public string Sex_Field { get; set; }
        public string JobName { get; set; }
        public string DepName { get; set; }
        public string Position { get; set; }
        public string Major { get; set; }
        public string EducationBackground_Field { get; set; }
        public string Place { get; set; }
        public DateTime Birthday { get; set; }
        public DateTime StartWorkingDate { get; set; }
        public DateTime DatesEmployed { get; set; } 
        public string Remark { get; set; }

        public Sex Sex { get { return CommonUtility.Convert2Enum(Sex_Field, Sex.Unknown); } }
        public EducationBgd EducationBackground { get { return CommonUtility.Convert2Enum(EducationBackground_Field, EducationBgd.Unknown); } }
    }
}
